*,
:host,
:host * {
  box-sizing: border-box;
}

:host {
  @apply --layout-vertical;
  --accent-color: #007dfc;
  /*--primary-background-color: #0a3b71;*/
  --primary-background-color: #151921;
  --sidebar-default-color: rgba(255, 255, 255, 0.5);
  --divider-color: #dadce0;
  --border-color: #eeeeef;
  --icon-color: #202124;
  --external-icon-color: var(--google-grey-700);
  --iframe-link: {
    text-decoration: none;
    color: inherit;
    outline: none;
  }
}

.flex {
  flex: 1;
}

.scrollable {
  height: 100%;
  overflow: auto;
}

#MainDrawer {
  color: white;
  --app-drawer-content-container: {
    background: var(--primary-background-color) !important;
    display: flex !important;
    flex-direction: column !important;
  }
}

app-drawer-layout {
  --app-drawer-width: 240px;
}

app-drawer-layout[narrow] #MainDrawer {
  --app-drawer-content-container: {
    box-shadow: 0 0 6px -1px #000;
  }
}

app-drawer-layout[bleed] #MainDrawer {
  background: var(--primary-background-color);
  --app-drawer-content-container: {
    background: transparent !important;
  }
}

#PageLoader {
  @apply --layout-fullbleed;
  @apply --layout-center-center;
  position: absolute;
  width: 100vw;
  top: 0;
  left: 0;
  background: #f1f3f4;
  /* background: #f5f8fd; */
  z-index: 1;
}

#MainDrawer .logo {
  margin-left: 1em;
}

#MainDrawer a:hover {
  color: inherit;
  text-decoration: none;
}

#MainDrawer iframe-link:hover,
#MainDrawer iron-selector > a:hover {
  text-decoration: none;
}

#MainDrawer iron-selector.flex {
  overflow: auto;
}

#MainDrawer .menu-item {
  color: var(--sidebar-default-color);
  cursor: pointer;
  font-family: Google Sans;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 24px;
  transition: background 0.25s;
  --paper-item-icon-width: 36px;
}

#MainDrawer .inner-menu-item {
  padding-left: 65px;
  margin: 0;
  font-size: 13px;
  min-height: 30px;
}

#MainDrawer .section-item {
  margin-bottom: 0;
  border-bottom: 1px;
  position: relative;
}

#MainDrawer iron-icon {
  margin-right: 20px;
  height: 20px;
  width: 20px;
}

#MainDrawer .divider {
  width: 90%;
  margin: 1em auto;
  border-bottom: 1px solid var(--sidebar-default-color);
}

#MainDrawer .menu-item:hover {
  background: #ffffff1b;
}

#MainDrawer .iron-selected {
  /* color: #fff; */
  color: #317ef4;
}

#MainDrawer .iron-selected::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  /* background: white; */
  background-color: #317ef4;

}

#MainDrawer .footer {
  padding: 1.25rem;
  font-size: 0.9em;
  color: var(--sidebar-default-color);
  line-height: 1.5em;
}

#MainDrawer .footer > .build {
  font-size: 0.9em;
  font-style: italic;
  color: rgba(255, 255, 255, 0.64);
}

app-toolbar {
  @apply --layout-horizontal;
  @apply --layout-center;
  background: #f5f8fd;
  transition: background 0.25s;

}

app-toolbar > header {
  margin-top: auto;
}

#Narrow-Slider {
  @apply --layout-horizontal;
  @apply --layout-center;
}

#Narrow-Slider[hidden] {
  display: none;
}

#Narrow-Slider > .Logo {
  margin: 0;
  color: var(--logo-color, var(--primary-background-color));
}

#Narrow-Slider > .Logo > svg {
  height: 24px;
  margin-top: 4px;
}

#Narrow-Slider > .Logo > svg * {
  fill: currentColor;
}

#NamespaceSelector {
  flex-basis: 33%;
}

#NamespaceSelector > paper-dropdown-menu {
  color: var(--accent-color);
  --paper-input-container-focus-color: var(--accent-color);
}

#ViewTabs {
  @apply --layout-horizontal;
  @apply --layout-center-justified;
  /*border-bottom: 1px solid rgba(0, 0, 0, .12);*/
  border-bottom: 1px solid rgb(217 231 253 / 50%);
}

paper-tabs {
  --paper-tabs-selection-bar-color: var(--accent-color);
  --paper-tab-ink: var(--accent-color);
  --paper-tabs-selection-bar: {
    border-radius: 50px 50px 0 0;
    border-width: 3px;
  }
}

paper-tab {
  padding: 0 2em;
}

paper-tab.iron-selected {
  color: var(--accent-color);
}

paper-tab[link] a {
  /* These mixins (from iron-flex-layout) center the link text. */
  @apply --layout-horizontal;
  @apply --layout-center-center;
  color: var(--paper-tabs-selection-bar);
  text-decoration: none;
}

paper-tab[link] a:hover {
  text-decoration: none;
}

app-header {
  box-shadow: 0 2px 6px 1px rgba(232, 234, 237, 0.5),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  /* border-bottom: 1px solid rgb(217 231 253); */
}

app-header-layout {
  @apply --layout-vertical;
}

#Content {
  @apply --layout-vertical;
  /* background: #f5f8fd; */
  background: #f1f3f4;
  height: 100%;
}

neon-animated-pages {
  height: 100%;
}

neon-animatable {
  @apply --layout-vertical;
  background: #f1f3f4;
  /* background: #f5f8fd; */
  height: 100%;
}

#User-Badge {
  right: 16px;
  position: absolute;
}

#User-Badge > a:nth-child(1) {
  /*margin-right:10px*/
  margin-right: 15px;
}

#User-Badge .icon {
  /*color: var(--primary-background-color);*/
  color: #2d3e5c;
}

#Menu {
  --paper-icon-button: {
    width: 44px;
    height: 44px;
    color: var(--primary-background-color);
  }
}

#MainDrawer .menu-item iron-icon.external {
  width: 0.75em;
  transform: translateY(-25%);
  margin-left: 0.25em;
}

#MainDrawer .footer .bullet {
  margin: 0 0.5em;
  display: inline-block;
}

#MainDrawer .footer .bullet:before {
  content: " ";
  display: inline-block;
  height: 0;
  width: 0;
  padding: 2px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}

#ErrorToast {
  background: var(--google-red-500);
  color: white;
  padding: 0.75em 1.5em;
  @apply --layout-horizontal;
  @apply --layout-center;
  --paper-icon-button: {
    color: white;
    margin-left: 1em;
    padding: 5px;
    width: 32px;
    height: 32px;
  }
}

[hides] {
  transition: opacity 0.25s;
}

[hidden] {
  opacity: 0;
  pointer-events: none;
}

[hidden]:not([hides]) {
  display: none !important;
}

a[href] {
  text-decoration: none;
  color: inherit;
  outline: none;
}

a[href]:hover,
iframe-link:hover {
  color: var(--paper-blue-700);
  text-decoration: underline;
}
